import request from '@/utils/request'

export function treeQuery () {
  return request({
    // url: '/permissionOne/findAllPermission',
    url: '/permission/findUserMenu',
    method: 'get'
  })
}
export function formSave (url, obj) {
  return request({
    url: '/permission/' + url,
    method: 'post',
    data: obj
  })
}
export function treeDel (obj) {
  return request({
    url: '/permission/delete',
    method: 'post',
    data: obj
  })
}
